home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / DDMLWriter$UnparsedEntityProxy.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.9 KB  |  41 lines

  1. package com.extensibility.xml;
  2.  
  3. public class DDMLWriter$UnparsedEntityProxy extends DDMLWriter.DeclProxy {
  4.    // $FF: synthetic field
  5.    final DDMLWriter this$0;
  6.    ExternalGEDeclaration decl;
  7.  
  8.    DDMLWriter$UnparsedEntityProxy(DDMLWriter var1) {
  9.       super((DDMLWriter)null);
  10.       this.this$0 = var1;
  11.    }
  12.  
  13.    DDMLWriter$UnparsedEntityProxy(DDMLWriter var1, ExternalGEDeclaration var2) {
  14.       super((DDMLWriter)null);
  15.       this.this$0 = var1;
  16.       this.setDecl(var2);
  17.    }
  18.  
  19.    void setDecl(ExternalGEDeclaration var1) {
  20.       this.decl = var1;
  21.       super.setDecl(var1);
  22.    }
  23.  
  24.    public void write(SXE var1, boolean var2) {
  25.       var1.writeAttr("Name", this.decl.getName());
  26.       if (this.decl.getPublicID() != null) {
  27.          var1.writeAttr("SystemLiteral", this.this$0.schema.expandPERefs(this.decl.getSystemID().toSource(), this.decl));
  28.       }
  29.  
  30.       if (this.decl.getPublicID() != null) {
  31.          var1.writeAttr("PublicLiteral", this.this$0.schema.expandPERefs(this.decl.getPublicID(), this.decl));
  32.       }
  33.  
  34.       var1.writeAttr("Notation", this.decl.getNotation());
  35.       if (var2) {
  36.          ((DDMLWriter.DeclProxy)this).writeComments(var1);
  37.       }
  38.  
  39.    }
  40. }
  41.